<?php
function openHeader() {
?>
<html>
<head>
<title>Vote Match for CSM6 - Who gets your vote?</title>
<link href="style.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="browser.js"></script>
<?php
}

function closeHeader() {
?>
</head>

<?php
}

function openBody($step) {
?>	
<body>
<div id="holder">
	<div id="logo">
		<script type="text/javascript">
			forIE();
		</script>
	</div>

	<div id="menu">
		<div class="link"><a href="index.php">Home</a></div>
		<div class="link"><a href="step_2.php">Vote match!</a></div>
		<div class="link"><a href="candidate_login.php">Candidate login</a></div>
		<div class="link"><a href="faq.php">FAQ</a></div>
	</div>
	<div id="navigation">
		<div class="<?php echo getClass(1, $step); ?>">Home</div>
		<div class="<?php echo getClass(2, $step); ?>">Match</div>
		<div class="<?php echo getClass(3, $step); ?>">Compare</div>
		<div class="<?php echo getClass(4, $step); ?>">Details</div>
	</div>

	<div id="content">
<?php
}

function closeHolder() {
?>
	</div>
	<i>Developed by  <a href="https://gate.eveonline.com/Profile/Dierdra%20Vaal">Dierdra Vaal</a>, hosted by <a href="http://www.eve-csm.com">www.eve-csm.com</a>. This website is not affiliated with CCP.</i>
</div>
<?php
}

function closeBody() {
?>
</body>
</html>
<?php
}

function getClass($step, $active) {
	$return = "step";
	if($step==$active)
		return $return . " active";
		
	return $return;
}
?>